package com.yunbiao.ybbusstopplate.ui.activity;

import android.content.Intent;

import com.yunbiao.ybbusstopplate.BuildConfig;
import com.yunbiao.ybbusstopplate.R;
import com.yunbiao.ybbusstopplate.base.BaseActivity;
import com.yunbiao.ybbusstopplate.refactoring.ui.yibin.YibinHeadPlateActivity;

public class SplashActivity extends BaseActivity {
    @Override
    public int getLayoutViewId() {
        return R.layout.activity_splash;
    }

    @Override
    public void initData() {
        if(BuildConfig.FLAVOR_TYPE == FlavorType.YIBIN){
            startActivity(new Intent(this, YibinHeadPlateActivity.class));
        } else {
            startActivity(new Intent(this,MainActivity.class));
        }
        finish();
    }
}
